package cn.edu.xmu.wnw.dao;

import java.util.List;

import org.springframework.context.ApplicationContext;

import cn.edu.xmu.wnw.pojo.Title;

public interface TitleDAO {

	public void initDao();

	public void save(Title transientInstance);

	public void delete(Title persistentInstance);

	public Title findById(java.lang.Integer id);

	public List findByExample(Title instance);

	public List findByProperty(String propertyName, Object value);

	public List findByName(Object name);

	public List findByHit(Object hit);

	public List findAll();

	public Title merge(Title detachedInstance);

	public void attachDirty(Title instance);

	public void attachClean(Title instance);

	public TitleDAO getFromApplicationContext(ApplicationContext ctx);
}